<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'广告管理'=>array($this->pre_module_url.'/adse/admin'),	
	'资讯分类广告'=>array($this->pre_module_url.'/adseNewsCat/newscatads'),
);
?>



<!--排序表单 -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>$this->pre_module_url.'/newsCat/update',
	'method'=>'post',
)); ?>
	 <ul class="main_class">
	 	<li class="main_type">
			<div class="cate_hd mem_bgx">
				<ul class="hd f_r t_c">
					<li class="w_300 f_l">分类名称</li>
					<li class="w_40 f_l">&nbsp;</li>
					<li class="w_180 f_l">广告数</li>
					<li class="w_180 f_l">查看分类下的广告</li>
					<li class="w_120 f_l">&nbsp;</li>
				</ul>
			</div>
	 	</li>
	 	
		<?php $this->widget('zii.widgets.CListView', array(
			'dataProvider'=>$model->search(),
			'itemView'=>'_newsview',
			'emptyText'=>"",
			'enablePagination'=>'false',
			'template'=>'{items}',
			'summaryText'=>'',
			'tagName'=>'ul',
			'htmlOptions'=>array('class'=>'type_list')
		)); 
		?>
	</ul>
<?php $this->endWidget(); ?>

<script>  
$(function () {   
    //列表折叠
	$('.ico_fold').bind('click',function(){
		$(this).parent().parent().next('ul').toggle();
		$(this).toggleClass('ico_del');
		$(this).toggleClass('ico_fold');
	});
}); 
</script> 

